package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ContractLinkVipchannelPriceMapper;
import com.ktgj.service.domain.ContractLinkVipchannelPrice;
import com.ktgj.service.service.IContractLinkVipchannelPriceService;

/**
 * 合同VIP通道服务价格
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ContractLinkVipchannelPriceServiceImpl implements IContractLinkVipchannelPriceService 
{
    @Autowired
    private ContractLinkVipchannelPriceMapper contractLinkVipchannelPriceMapper;

    /**
     * 查询合同VIP通道服务价格

     * 
     * @param contractVipchannelpriceId 合同VIP通道服务价格
ID
     * @return 合同VIP通道服务价格

     */
    @Override
    public ContractLinkVipchannelPrice selectContractLinkVipchannelPriceById(Long contractVipchannelpriceId)
    {
        return contractLinkVipchannelPriceMapper.selectContractLinkVipchannelPriceById(contractVipchannelpriceId);
    }

    @Override
    public List<ContractLinkVipchannelPrice> selectVipchannelPriceByContractVipchannelId(Long contractVipchannelId) {
        return contractLinkVipchannelPriceMapper.selectVipchannelPriceByContractVipchannelId(contractVipchannelId);
    }

    /**
     * 查询合同VIP通道服务价格
列表
     * 
     * @param contractLinkVipchannelPrice 合同VIP通道服务价格

     * @return 合同VIP通道服务价格

     */
    @Override
    public List<ContractLinkVipchannelPrice> selectContractLinkVipchannelPriceList(ContractLinkVipchannelPrice contractLinkVipchannelPrice)
    {
        return contractLinkVipchannelPriceMapper.selectContractLinkVipchannelPriceList(contractLinkVipchannelPrice);
    }

    /**
     * 新增合同VIP通道服务价格

     * 
     * @param contractLinkVipchannelPrice 合同VIP通道服务价格

     * @return 结果
     */
    @Override
    public int insertContractLinkVipchannelPrice(ContractLinkVipchannelPrice contractLinkVipchannelPrice)
    {
        contractLinkVipchannelPrice.setCreateTime(DateUtils.getNowDate());
        return contractLinkVipchannelPriceMapper.insertContractLinkVipchannelPrice(contractLinkVipchannelPrice);
    }

    /**
     * 修改合同VIP通道服务价格

     * 
     * @param contractLinkVipchannelPrice 合同VIP通道服务价格

     * @return 结果
     */
    @Override
    public int updateContractLinkVipchannelPrice(ContractLinkVipchannelPrice contractLinkVipchannelPrice)
    {
        contractLinkVipchannelPrice.setUpdateTime(DateUtils.getNowDate());
        return contractLinkVipchannelPriceMapper.updateContractLinkVipchannelPrice(contractLinkVipchannelPrice);
    }

    /**
     * 批量删除合同VIP通道服务价格

     * 
     * @param contractVipchannelpriceIds 需要删除的合同VIP通道服务价格
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkVipchannelPriceByIds(Long[] contractVipchannelpriceIds)
    {
        return contractLinkVipchannelPriceMapper.deleteContractLinkVipchannelPriceByIds(contractVipchannelpriceIds);
    }

    /**
     * 删除合同VIP通道服务价格
信息
     * 
     * @param contractVipchannelpriceId 合同VIP通道服务价格
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkVipchannelPriceById(Long contractVipchannelpriceId)
    {
        return contractLinkVipchannelPriceMapper.deleteContractLinkVipchannelPriceById(contractVipchannelpriceId);
    }
}
